package com.leyou.sh.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.sh.common.dto.PageDTO;
import com.leyou.sh.item.dto.BrandDTO;
import com.leyou.sh.item.entity.Brand;

import java.util.List;

/**
 * @author balisong_fcs
 * @date 2020/12/27 19:44
 * @desc
 */
public interface BrandService extends IService<Brand> {
    BrandDTO queryBrandById(Long id);

    List<BrandDTO> queryBrandListByIds(List<Long> ids);

    PageDTO queryByPage(Integer page, Integer rows, String key);

    List<BrandDTO> queryBrandByCategroyId(Integer id);

    void updateBrand(BrandDTO brandDTO);

    void deleteByBrandId(Integer id);

    void saveBrand(BrandDTO brandDTO);
}
